package com.dianban.dao;

import com.dianban.entity.JwShoproUserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JwShoproUserAddressDao {
    List<JwShoproUserAddress> findList(@Param("userId") Long userId);

    void updateIsDefault(@Param("isDefault") String isDefault, @Param("userId") Long userId);

    void insert(JwShoproUserAddress jwShoproUserAddress);

    JwShoproUserAddress findById(@Param("id") String id);

    void update(JwShoproUserAddress jwShoproUserAddress);

    void deleteById(JwShoproUserAddress jwShoproUserAddress);
}
